﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;
using CommonManage = DevelopStudio.Common.Manage;
using CommonBasic = DevelopStudio.Common.Basic;

namespace DevelopStudio.Basic
{
    [Serializable]
    [XmlRoot("Root")]
    public class WorkingCopyInfo
    {
        public WorkingCopyInfo()
        {
            Init();
        }

        private void Init()
        {
            Path = string.Empty;
            ChangelistInfos = new List<ChangelistInfo>();
        }

        [XmlElement("Path")]
        public string Path { get; set; }

        [XmlElement("Url")]
        public string Url { get; set; }

        public List<IgnoredItem> IgnoredList { get; set; }

        [XmlArray("ChangelistInfos")]
        [XmlArrayItem("ChangelistInfo", typeof(ChangelistInfo))]
        public List<ChangelistInfo> ChangelistInfos { get; set; }
    }
}
